package com.ztesoft.web.common.db.dao.mapper;

import com.ztesoft.web.common.db.arg.DbBaseInfoArg;
import com.ztesoft.web.common.db.po.DbBaseInfoPO;

import java.util.*;
import java.math.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IDbBaseInfoMapper {
	DbBaseInfoPO selectByLinkId(Integer  dbLinkId);
	
    List<Integer> countByArg(DbBaseInfoArg arg);

    int deleteByArg(DbBaseInfoArg arg);

    List<DbBaseInfoPO> selectByArg(DbBaseInfoArg arg);
    
    List<DbBaseInfoPO> selectAll();

    int updateByArgSelective(@Param("record") DbBaseInfoPO record,
            @Param("arg") DbBaseInfoArg arg);

    int updateByArg(@Param("record") DbBaseInfoPO record,
            @Param("arg") DbBaseInfoArg arg);

    List<DbBaseInfoPO> selectByArgAndPage(DbBaseInfoArg arg, RowBounds rowBound);
  //数据库信息查询
    List<DbBaseInfoPO> selectByArgAndPageDbInfo(DbBaseInfoPO record, RowBounds rowBound);
    
    DbBaseInfoPO selectForDbType(Integer dbLinkId);

    int insert(DbBaseInfoPO record);

    int insertSelective(DbBaseInfoPO record);

    int insertBatch(@Param("list") List<DbBaseInfoPO> records);

    int deleteByPrimaryKey(Integer id);

    DbBaseInfoPO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DbBaseInfoPO record);

    int updateByPrimaryKey(DbBaseInfoPO record);
}